package com.ma.entity.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

import java.util.List;

@JsonPropertyOrder({"title", "director", "year", "actors"})
public record MovieInfo(

        @JsonProperty("title")
        @JsonPropertyDescription("电影标题")
        String title,

        @JsonProperty("director")
        @JsonPropertyDescription("导演姓名")
        String director,

        @JsonProperty("year")
        @JsonPropertyDescription("上映年份")
        int year,

        @JsonProperty("actors")
        @JsonPropertyDescription("主演列表")
        List<String> actors
) {}
